# == Schema Information
#
# Table name: sales_promotions
#
#  id         :integer          not null, primary key
#  title      :string
#  content    :text
#  actived    :boolean
#  started_at :datetime
#  ended_at   :datetime
#  main_img   :string
#  created_at :datetime         not null
#  updated_at :datetime         not null
#  summary    :string
#

class SalesPromotion < ApplicationRecord
  scope :actived, -> () { where(actived: true) }
end
